<?php
require APP_PATH . 'core/libs/smarty/Smarty.class.php';

class Core {
	public static function start($config = array()){
		$get = $GLOBALS['GET'];
		$module = isset($get['m']) ? ucfirst($get['m']) : "Home";
		$controller = isset($get['c']) ? ucfirst($get['c']) : "Index";
		$action = isset($get['a']) ? ucfirst($get['a']) : "index";
	
		require "../app/" . $module . "/Controller/" . lcfirst($controller) . ".php";
		$controller = $controller."Controller";
		$app = new $controller();
		$app->$action();
	}
}